#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
void *t1_exe(void *arg)
{
    printf("New thread PID: %d, TID: %lu\n", getpid(), (unsigned long)pthread_self());
}
void main()
{
    pthread_t pid1;
    pthread_create(&pid1, NULL, t1_exe, NULL);
    printf("Main thread PID: %d, TID: %lu\n", getpid(), (unsigned long)pthread_self());
    pthread_join(pid1, NULL);
}